﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ControleEstoque.PDA
{
	public partial class ControleEstoqueForm : Form
	{
		ControleEstoque.PDA.ControleEstoqueServices.ControleAtivoDataSet.UsuarioRow _currentUser;

		public ControleEstoque.PDA.ControleEstoqueServices.ControleAtivoDataSet.UsuarioRow CurrentUser
		{
			get
			{
				return _currentUser;
			}
			set
			{
				_currentUser = value;
			}
		}

		public ControleEstoqueForm()
		{
			InitializeComponent();
		}

		private void menuItem3_Click(object sender, EventArgs e)
		{
			this.Close();
		}

		private void menuItem5_Click(object sender, EventArgs e)
		{
			this.Controls.Clear();
			Ativos ativosControl = new Ativos();
			ativosControl.RefreshData();
			ativosControl.Dock = DockStyle.Fill;
			this.Controls.Add(ativosControl);
			this.Text = "Cadastro de Ativos";
		}

		private void ControleEstoqueForm_KeyDown(object sender, KeyEventArgs e)
		{
			if ((e.KeyCode == System.Windows.Forms.Keys.Up))
			{
				// Up
			}
			if ((e.KeyCode == System.Windows.Forms.Keys.Down))
			{
				// Down
			}
			if ((e.KeyCode == System.Windows.Forms.Keys.Left))
			{
				// Left
			}
			if ((e.KeyCode == System.Windows.Forms.Keys.Right))
			{
				// Right
			}
			if ((e.KeyCode == System.Windows.Forms.Keys.Enter))
			{
				// Enter
			}

		}

		private void menuItem6_Click(object sender, EventArgs e)
		{
			this.Controls.Clear();
			RegistrarLeitura registrarLeituraControl = new RegistrarLeitura();
			registrarLeituraControl.Dock = DockStyle.Fill;
			this.Controls.Add(registrarLeituraControl);
			this.Text = "Registrar Leitura";
		}

		private void menuItem7_Click(object sender, EventArgs e)
		{
			this.Controls.Clear();
			RealizarConsulta registrarLeituraControl = new RealizarConsulta();
			registrarLeituraControl.Dock = DockStyle.Fill;
			this.Controls.Add(registrarLeituraControl);
			this.Text = "Realizar Consulta";
		}
	}
}